package db;

import java.sql.SQLException;
import java.util.List;

public interface DBProxy<T extends DBObject> {
	
	public List<T> query(DBConnection pConnection, String pWhere) throws SQLException;
	public void query(List<T> pResultContainer, DBConnection pConnection, String pWhere) throws SQLException;
	
	public int update(T pNewItem, DBConnection pConnection) throws SQLException;
	public T insert(T pNewItem, DBConnection pConnection) throws SQLException;
	public int drop(T pDeleteItem, DBConnection pConnection) throws SQLException;
	
}
